<!DOCTYPE html>

<!-- BEGIN HEAD-->
<?php
require_once("Admin/template/header.php");
?>
<!-- END  HEAD-->

<!-- BEGIN BODY-->
<body class="padTop53 ">

<!-- MAIN WRAPPER -->
<div id="wrap">


    <!-- HEADER SECTION (BCORD ADMIN)  Top-->
    <?php
    require_once "Admin/template/top.php";
    ?>
    <!-- END HEADER SECTION (BCORD ADMIN)  Top-->


    <!-- MENU SECTION （Left Menu）-->
    <?php
    require_once("Admin/template/left.php");
    ?>
    <!--END MENU SECTION （Left Menu）-->


    <!--PAGE CONTENT -->
    <div id="content">

        <div class="inner" style="min-height:1200px;">
            <div class="row">
                <div class="col-lg-12">
                    <!--Input Content -->

                    <h3>请填写视频信息</h3>
                    <form class="form-horizontal" method="POST" action="admin.php?c=video&m=add" enctype="multipart/form-data">

                        <div class="form-group">
                            <label for="videoname" class="col-md-2 control-label">视频名称</label>
                            <div class="col-md-10">
                                <input type="text" class="form-control" id="videoname" placeholder="videoname"
                                       name="videoname" required>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-2 control-label">视频类型</label>
                            <div class="col-md-10">
                                <select class="form-control" name="videotype">
                                    <option value="0">---请选择---</option>
                                    <?php
                                    foreach ($data['videoTypes'] as $row) {
                                        echo "<option value={$row['tid']}>" . $row['typename'] . "</option>";
                                    }
                                    ?>
                                </select>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-2 control-label">视频海报</label>
                            <div class="col-md-10">
                                <input type="file" id="exampleInputFile" name="pic">
                            </div>
                        </div>


                        <div class="form-group">
                            <label class="col-md-2 control-label">视频简介</label>
                            <div class="col-md-10">
                                <textarea class="form-control" rows="3" name="videointro" required></textarea>
                            </div>
                        </div>

                        <div class="form-group">
                            <label for="address" class="col-md-2 control-label">下载地址</label>
                            <div class="col-md-10">
                                <input type="text" class="form-control" id="address" placeholder="address"
                                       name="address" required>
                            </div>
                        </div>


                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <input type="submit" class="btn btn-primary" value="添加">
                                <input type="reset" class="btn btn-primary" value="重置">
                            </div>
                        </div>
                    </form>
                    <!--End Input Content-->

                </div>
            </div>

            <hr/>


        </div>


    </div>
    <!--END PAGE CONTENT -->


</div>

<!--END MAIN WRAPPER -->

<!-- FOOTER -->
<?php
require_once "Admin/template/footer.php";
?>
<!--END FOOTER -->

</body>
<!-- END BODY-->

</html>
